import request from '@/utils/request'

// 预约平台预约单列表
export function findProjectAppointmentList(query) {
  return request({
    url: '/com.mmk.reservation.api.AdminProjectOrderProjectProvider/1.0.0/findProjectAppointmentList.html',
    method: 'post',
    data: query
  })
}

//预约平台修改备注
export function updateSubmitRemarkByOrderSn(query) {
    return request({
      url: '/com.mmk.reservation.api.AdminProjectOrderProjectProvider/1.0.0/updateSubmitRemarkByOrderSn.html',
      method: 'post',
      data: query
    })
  }

//预约平台关闭
export function closeProjectOrderProject(query) {
    return request({
      url: '/com.mmk.reservation.api.AdminProjectOrderProjectProvider/1.0.0/closeProjectOrderProject.html',
      method: 'post',
      data: query
    })
  }

//根据省市查询所有医院列表
export function selectHospitalByProvCity(query) {
    return request({
      url: '/com.mmk.reservation.api.AdminHospitalProvider/1.0.0/selectHospitalByProvCity.html',
      method: 'post',
      data: query
    })
}

//根据医院查询所有项目
export function selectProjectListByHospital(query) {
    return request({
      url: '/com.mmk.reservation.api.AdminBeautyProjectProvider/1.0.0/selectProjectListByHospital.html',
      method: 'post',
      data: query
    })
}

//根据id查询下一级分类
export function BeautyCateQueryChildren(query) {
    return request({
      url: '/com.mmk.reservation.api.AdminBeautyCategoriesProvider/1.0.0/BeautyCateQueryChildren.html',
      method: 'post',
      data: query
    })
}

//查询医美项目
export function selectBeautyCategoryByPBcId(query) {
    return request({
      url: '/com.mmk.reservation.api.AdminBeautyCategoriesProvider/1.0.0/selectBeautyCategoryByPBcId.html',
      method: 'post',
      data: query
    })
}

//预约单会员查询
export function selectByReservation(query) {
    return request({
      url: '/com.mmk.member.api.AdminUserProvider/1.0.0/selectByReservation.html',
      method: 'post',
      data: query
    })
}

//会员新增
export function saveByReservation(query) {
    return request({
      url: '/com.mmk.member.api.AdminUserProvider/1.0.0/saveByReservation.html',
      method: 'post',
      data: query
    })
}

// 预约单终极提交
export function appointmentOrderAdd(query) {
    return request({
      url: '/com.mmk.reservation.api.AdminProjectOrderProjectProvider/1.0.0/appointmentOrderAdd.html',
      method: 'post',
      data: query
    })
}

// 发送短信给用户
export function sendMessage(query) {
  return request({
    url:  "/com.mmk.reservation.api.AdminMsgProvider/1.0.0/sendMsg.html",
    method: 'post',
    data: query
  })
}


//项目分类（预约平台专用）
export function getAllBeautyCategoryList(query) {
    return request({
      url: '/com.mmk.reservation.api.AdminBeautyCategoriesProvider/1.0.0/getAllBeautyCategoryList.html',
      method: 'post',
      data: query
    })
}